//
//  SecondTableViewCell.m
//  bh
//
//  Created by lanou on 15/12/19.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import "SecondTableViewCell.h"
#import "UIImageView+AFNetworking.h"
@implementation SecondTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _titeLabel = [[UILabel alloc]initWithFrame:(CGRectMake(10, 15, 100, 40))];
        _titeLabel.font = [UIFont boldSystemFontOfSize:20];
        [self.contentView addSubview:_titeLabel];
        
        _pictureView = [[UIImageView alloc]initWithFrame:(CGRectMake((kWidth / 3) * 2 - 60, 0, 60, 60))];
        [self.contentView addSubview:_pictureView];
    }
    return self;
}


- (void)setClassify:(Classify *)classify{
    if (_classify != classify) {
        _classify = classify;
       _titeLabel.text = classify.value ;
        [_pictureView setImageWithURL:[NSURL URLWithString:classify.pic]];
    }
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
